package com.hansheng.ssdxs.http;

import com.hansheng.http.annotation.RequestMethod;
import com.hansheng.http.parser.DefaultResultParser;
import com.hansheng.http.request.IRequest;
import com.hansheng.http.request.LfRequest;

import java.lang.reflect.Type;

/**
 *
 */
public class HttpRequest extends LfRequest {

    public static IRequest sendHttp(String path, @RequestMethod int requestMethod, Type type) {
        HttpRequest request = new HttpRequest();
        request.host = HostManager.jhHost;
        request.path = path;
        request.requestMethod = requestMethod;
        request.type = type;
        request.resultParser = DefaultResultParser.getInstance();
        return request;
    }
}
